package com.dnjn.happiness.emo.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 快乐值周均对象 emo_avg_score_weekly
 *
 * @author happiness
 * @date 2024-02-27
 */
@Schema(name = "EmoAvgScoreWeekly", description = "快乐值周均")
@Accessors(chain = true)
@Getter
@Setter
@ToString
@TableName("emo_avg_score_weekly")
public class EmoAvgScoreWeekly extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    

    /**
     * userId
     */
    @Schema(description = "userId")
//    @Excel(name = "userId", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    @Excel(name = "姓名")
    private String nickName;

    /**
     * 工号
     */
    @Schema(description = "工号")
    @Excel(name = "工号")
    private String empno;

    /**
     *
     */
    @Schema(description = "")
    @Excel(name = "")
    private String weekOfYear;

    /**
     * 年
     */
    @Schema(description = "年")
    @Excel(name = "年", readConverterExp = "$column.readConverterExp()")
    private Long year;

    /**
     * 第几周
     */
    @Schema(description = "第几周")
    @Excel(name = "第几周")
    private Long week;

    /**
     * 名次
     */
    @Schema(description = "名次")
    @Excel(name = "名次")
    private Long ranking;

    /**
     * 平均值
     */
    @Schema(description = "平均值")
    @Excel(name = "平均值")
    private BigDecimal scoreAvg;

    /**
     * 平均值波动
     */
    @Schema(description = "较上周波动")
    @Excel(name = "较上周波动")
    private BigDecimal scoreChanged;

    /**
     * 是否删除|0-否 1-是
     */
    private String deleted;

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private String sex;

    @TableField(exist = false)
    private Long deptId;

    @Excel(name = "建议")
    @TableField(exist = false)
    private String advice;

    @Excel(name = "打卡")
    @TableField(exist = false)
    private String ai;

    @Excel(name = "问卷调查")
    @TableField(exist = false)
    private String survey;

    @Excel(name = "考勤")
    @TableField(exist = false)
    private String attendance;

    @Excel(name = "培训")
    @TableField(exist = false)
    private String training;

    @Excel(name = "沟通")
    @TableField(exist = false)
    private String communicate;

    @Excel(name = "评价")
    @TableField(exist = false)
    private String appraise;

}
